package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.TaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.response.SimbaKeywordKeywordforecastGetResponse;
import com.taobao.api.ApiRuleException;
/**
 * TOP API: taobao.simba.keyword.keywordforecast.get request
 * 
 * @author auto create
 * @since 1.0, 2012-08-10 16:38:26
 */
public class SimbaKeywordKeywordforecastGetRequest implements TaobaoRequest<SimbaKeywordKeywordforecastGetResponse> {

	private TaobaoHashMap udfParams; // add user-defined text parameters
	private Long timestamp;

	/** 
	* 词的出价,范围在5-9999之间,单位分
	 */
	private Long bidwordPrice;

	/** 
	* 词ID
	 */
	private Long keywordId;

	/** 
	* 经典名表行
	 */
	private String nick;

	public void setBidwordPrice(Long bidwordPrice) {
		this.bidwordPrice = bidwordPrice;
	}
	public Long getBidwordPrice() {
		return this.bidwordPrice;
	}

	public void setKeywordId(Long keywordId) {
		this.keywordId = keywordId;
	}
	public Long getKeywordId() {
		return this.keywordId;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}
	public String getNick() {
		return this.nick;
	}

	public Long getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public String getApiMethodName() {
		return "taobao.simba.keyword.keywordforecast.get";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("bidword_price", this.bidwordPrice);
		txtParams.put("keyword_id", this.keywordId);
		txtParams.put("nick", this.nick);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public void putOtherTextParam(String key, String value) {
		if(this.udfParams == null) {
			this.udfParams = new TaobaoHashMap();
		}
		this.udfParams.put(key, value);
	}

	public Class<SimbaKeywordKeywordforecastGetResponse> getResponseClass() {
		return SimbaKeywordKeywordforecastGetResponse.class;
	}

	public void check() throws ApiRuleException {
		
		RequestCheckUtils.checkNotEmpty(bidwordPrice,"bidwordPrice");
		RequestCheckUtils.checkNotEmpty(keywordId,"keywordId");
	}
}
